<?php namespace App\Models\Cxhshop;

use App\Models\Base\CxhshopBase;

class ShopMemberLog extends CxhshopBase {
    protected $table = 'ims_ewei_shop_member_log';

    protected $fillable = ['*'];
    public $timestamps = false;
    protected $dates = [];

    public static $rules = [
        // Validation rules
    ];
    /**
     * 获取用户信息
     * params1 String $uuid
     *  params1 Array $fields
     */
    public function addShopMemberLog($money,$openid,$logno){

        $logData = [
            'uniacid'=>1,
            'openid'=>$openid,
            'logno'=>$logno,
            'title'=>'股权充值',
            'createtime'=>time(),
            'status'=>0,
            'type'=>1,
            'money'=>$money,
            'rechargetype'=>'bank'
        ];
        $query = self::query();
        $logId = $query -> insertGetId($logData);
        return $logId;
    }


}